<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta  content="html/text;charset=utf-8">
<link rel="stylesheet" type="text/css" href="../css/mycss.css" />
<title>健康网</title>
</head>
<script>
	function admin() {
		var xmlHttp;
		var flag;
		var val = document.getElementById("nameValue").innerHTML;
		try {
			xmlHttp = new XMLHttpRequest();
		} catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
				flag = xmlHttp.responseText;
			if (flag == "true")
				setTimeout(function() {
					location.href = "admin.jsp";
				}, 500);
			else if (flag == "false")
				alert("权限不足!");
		}
		xmlHttp.open("get", "admin.do?submit=no&name=" + val, true);
		xmlHttp.send(null);
	}
	
	function showTime(){
		var time=new Date();
		document.getElementById("ti").innerHTML=time;
		setTimeout("systemTime()",1000);
	}
</script>
<c:if test="${pass==null}">
	<c:redirect url="http://localhost:8080/health/login.htm" />
</c:if>


<body >
	&emsp;&emsp;<a id="nameValue" href="http://localhost:8080/health/jsp/privy.jsp">${pass.getName() }</a>

	<button style="left:1000px;position:relative;" onclick="admin()">用户管理</button>
	<h1 align="center">欢迎来到健康养生中心</h1>
	<table>
		<tbody>
			<tr>
				<td style="width: 220px;">
					<div
						class="menu">
						<a href="http://localhost:8080/health/jsp/home.jsp">首页</a><br />
						<br /> <a href="http://localhost:8080/health/jsp/BMI_Number.jsp">身高体重指数</a><br />
						<br /> <a href="http://localhost:8080/health/jsp/recipe.jsp">食谱分析</a><br />
						<br /> <a href="http://localhost:8080/health/jsp/energyCount.jsp">能量收支</a><br />
						<br /> <a href="http://localhost:8080/health/exit.do">退出登录</a>

					</div>
				</td>
				<td>

					<div style="width: 900; display: inline-table; padding: 20px;">
						<a href="https://zhidao.baidu.com/daily/view?id=23696"><img
							src="https://gss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D800%2C450/sign=ad935967992397ddd62c900c69b29e83/03087bf40ad162d93a78029c19dfa9ec8b13cd98.jpg" />
						</a><br> <a
							style="left: 130px; position: relative; font-size: x-large;"
							href="https://zhidao.baidu.com/daily/view?id=23696">口腔是通往整体健康的窗户</a>
<br>
						<a href="/daily/view?id=23063" target="_blank"> <img
							src="https://gss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D800%2C450/sign=113f91538a025aafd36776c3cbdd8750/9d82d158ccbf6c814026fb7bb43eb13533fa4014.jpg"
							alt="简单6步呵护你的心脏" title="简单6步呵护你的心脏" width="800" height="450">
						</a><br>
						
							<a href="/daily/view?id=23063" target="_blank"
								>
								简单6步呵护你的心脏 </a><br>
						
							<a href="/daily/view?id=23063" target="_blank"
								>
								心脏病已经成为中国女性的头号健康杀手！ </a>
						</div>
				</td>
			</tr>
		</tbody>
	</table>
	<p id="ti"></p>
</body>
</html>